package com.sx.pipeline.custom.dialog;

import android.content.Context;
import android.graphics.Color;
import android.widget.TextView;

import androidx.annotation.NonNull;

import com.lxj.xpopup.XPopup;
import com.lxj.xpopupext.popup.CommonPickerPopup;
import com.sx.pipeline.R;

/**
 * @Author: YY
 * @Date: 2022/2/22
 * @Description: TODO
 */
public class CustomCommonPicket extends CommonPickerPopup {

    TextView btnCancel, btnConfirm, btnTitle;

    String name;

    public CustomCommonPicket(@NonNull Context context, String name) {
        super(context);
        textColorCenter = Color.parseColor("#333333");
        this.name = name;
    }

    @Override
    protected int getImplLayoutId() {
        return R.layout.dialog_wheelview;
    }

    @Override
    protected void onCreate() {
        super.onCreate();
        btnCancel = findViewById(R.id.btnCancel);
        btnCancel.setTextColor(XPopup.getPrimaryColor());

        btnConfirm = findViewById(R.id.btnConfirm);
        btnConfirm.setTextColor(Color.parseColor("#0188FF"));

        btnTitle = findViewById(R.id.tv_title);
        btnTitle.setText(name);


    }
}
